<template>
  <div class="category">
    <!-- 导航栏 -->
    <nav-bar class="nav-bar">
      <div slot="center">分类</div>
    </nav-bar>
    <!-- 内容 -->
    <div class="category-content">
      <!-- 一级分类（左侧） -->
      <category-left />
      <!-- 二级分类（右侧） -->
      <category-right />
    </div>
  </div>
</template>

<script>
import NavBar from "components/common/navbar/NavBar";

import CategoryLeft from "./childComps/CategoryLeft";
import CategoryRight from "./childComps/CategoryRight";

export default {
  name: "Category",
  components: {
    NavBar,
    CategoryLeft,
    CategoryRight
  },
  data() {
    return {};
  },
  created() {}
};
</script>
<style scoped>
.category {
  height: 100vh;
  font-size: 16px;
}

.nav-bar {
  color: #fff;
  background-color: var(--color-tint);
}

.category-content {
  display: flex;
  height: calc(100% - 44px - 49px);
}
/* .cate-content{
  display: flex;
} */
</style>
